package sharewithus.search.dto;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.apache.solr.client.solrj.beans.Field;

import framelib.common.FrameCommon;

/**
 * 
 * Title:FeedExtDTO Description:
 * 
 * @Create_by:Terry
 * @Create_date:2012-5-24
 * @Last_Edit_By:
 * @Edit_Description
 * @version:ShareWithUs 1.0
 * 
 */
public class FeedExtDTO implements Serializable {

	/**
	 * <code>serialVersionUID</code>-注释
	 */
	private static final long serialVersionUID = 4470542076767664134L;

	@Field
	private String id;
	
	@Field
	private Long ownerId;//作者id
	
	@Field
	private String ownerName;//作者名称
	
	@Field
	private Integer region;// 地区
	
	@Field
	private Integer ageBracket;// 年龄段
	
	@Field
	private Integer type;// feed类别
	
	@Field
	private Date deployDate;// 发布时间
	
	@Field
	private int male = FrameCommon.GENDER_FEMALE; // 性别
	
	@Field
	private String content;// 正文
	
	@Field
	private String title;// 标题
	
	@Field
	private int ctr;// 点击率
	
	@Field
	private int commentRate;// 点评率
	
	public FeedExtDTO(){}
	public FeedExtDTO(String id, Long ownerId, String ownerName, Integer region,
			Integer ageBracket, Integer type, Date deployDate, int male,
			String content, String title, int ctr, int commentRate) {
		super();
		this.id = id;
		this.ownerId = ownerId;
		this.ownerName = ownerName;
		this.region = region;
		this.ageBracket = ageBracket;
		this.type = type;
		this.deployDate = deployDate;
		this.male = male;
		this.content = content;
		this.title = title;
		this.ctr = ctr;
		this.commentRate = commentRate;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Long getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(Long ownerId) {
		this.ownerId = ownerId;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public Integer getRegion() {
		return region;
	}

	public void setRegion(Integer region) {
		this.region = region;
	}

	public Integer getAgeBracket() {
		return ageBracket;
	}

	public void setAgeBracket(Integer ageBracket) {
		this.ageBracket = ageBracket;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getDeployDate() {
		return deployDate;
	}

	public void setDeployDate(Date deployDate) {
		this.deployDate = deployDate;
	}

	public int getMale() {
		return male;
	}

	public void setMale(int male) {
		this.male = male;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getCtr() {
		return ctr;
	}

	public void setCtr(int ctr) {
		this.ctr = ctr;
	}

	public int getCommentRate() {
		return commentRate;
	}

	public void setCommentRate(int commentRate) {
		this.commentRate = commentRate;
	}
	
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.SHORT_PREFIX_STYLE);
	}
	
}
